﻿package com.amcharts.chartClasses
{
    import com.amcharts.geom.*;
    import com.amcharts.utils.*;
    import flash.display.*;

    public class PlotArea extends Sprite
    {
        private var _fillColors:Array;
        private var _borderAlpha:Number = 0;
        private var _fillAlphas:Array;
        private var _borderColor:uint = 0;
        static const VERSION:String = "1.8.3.1";

        public function PlotArea()
        {
            _fillColors = [16777215];
            _fillAlphas = [1];
            return;
        }// end function

        public function setSize(param1:Number, param2:Number, param3:Number, param4:Number) : void
        {
            var _loc_6:Number = NaN;
            var _loc_7:Number = NaN;
            var _loc_8:Polygon = null;
            var _loc_9:Polygon = null;
            Utils.removeChildren(this);
            var _loc_5:* = new Rect(param1, param2, _fillColors, _fillAlphas, 0, _borderColor, _borderAlpha);
            addChild(_loc_5);
            if (param3 != 0)
            {
            }
            if (param4 != 0)
            {
                _loc_5.x = param3;
                _loc_5.y = param4;
                _loc_6 = _fillColors[(_fillColors.length - 1)];
                _loc_7 = _fillAlphas[(_fillAlphas.length - 1)];
                _loc_8 = new Polygon([0, param3, param1 + param3, param1, 0], [-1, param4, param4, -1, -1], [_loc_6], [_loc_7]);
                addChild(_loc_8);
                Utils.adjustBrightness(_loc_8, 0.8);
                _loc_8.y = param2;
                _loc_9 = new Polygon([0, 0, param3, param3, 0], [0, param2, param2 + param4, param4, 0], _fillColors, _fillAlphas);
                addChild(_loc_9);
                Utils.adjustBrightness(_loc_9, 0.8);
            }
            return;
        }// end function

        public function set borderAlpha(param1:Number) : void
        {
            _borderAlpha = param1;
            return;
        }// end function

        public function set fillColors(param1:Array) : void
        {
            _fillColors = param1;
            return;
        }// end function

        public function set borderColor(param1:uint) : void
        {
            _borderColor = param1;
            return;
        }// end function

        public function set fillAlphas(param1:Array) : void
        {
            _fillAlphas = param1;
            return;
        }// end function

    }
}
